package com.mooc.pojo.vo;

import lombok.Data;

import javax.persistence.*;

@Data
@Entity
@Table(name = "user")
public class User {
    /**
     *   `user_id` int(11) NOT NULL COMMENT '用户id',
     *   `name` varchar(20) NOT NULL COMMENT '用户名',
     *   `password` varchar(25) NOT NULL COMMENT '密码',
     *   `phone` varchar(11) DEFAULT NULL COMMENT '联系电话',
     *   `address` varchar(20) DEFAULT NULL COMMENT '详细住址',
     *   `email` varchar(20) NOT NULL COMMENT '邮箱',
     *   `image` varchar(255) DEFAULT NULL COMMENT '头像',
     */

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Column(name = "name")
    private String name;

    @Column(name = "password")
    private String password;

    @Column(name = "phone")
    private String phone;

    @Column(name = "address")
    private String address;

    @Column(name = "email")
    private String email;

    @Column(name = "image")
    private String image;

}
